package com.facebook.games.fa.controller
{
	import com.facebook.games.fa.events.GameEvent;
	import com.facebook.games.fa.view.StartGame;
	
	import flash.events.EventDispatcher;

	/**
	 * Controlador da view StartGame
	 * @author Diego Maehler <dmaehler@gmail.com>
	 */
	public class StartGameController extends EventDispatcher
	{
		
		/**
		 * StarGame view
		 */
		public var view : StartGame;
		
		/**
		 * Inicia um novo jogo
		 */
		public function beginGame () : void
		{
			this.view.dispatchEvent(new GameEvent(GameEvent.NEW_GAME));
		}
		
	}
}